package com.auth.vo.wechat;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author:Tangjiachang
 * @Date 2023/7/29
 * @Description: 树形结构
 */
@Data
public class TreeObject {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "id")
    private Long parentId;

    @ApiModelProperty(value = "下级")
    @TableField(exist = false)
    private List<TreeObject> children = new ArrayList<>(0);
}
